list->string   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/init.xtm

Implementation

(define (list->string charlist)
  (let* ((len (length charlist))
         (newstr (make-string len))
         (fill-string!
          (lambda (str i len charlist)
            (if (= i len)
                str
                (begin (string-set! str i (car charlist))
                       (fill-string! str (+ i 1) len (cdr charlist)))))))
    (fill-string! newstr 0 len charlist)))


Back to Index